package com.personal.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class TReserve {
    private Integer reserveid;

    private Integer reservemem;

    private Integer reservecoach;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date reservedate;
    private String reservestates;
    private TMember member;
    private TCoach coach;

    @Override
    public String toString() {
        return "TReserve{" +
                "reserveid=" + reserveid +
                ", reservemem=" + reservemem +
                ", reservecoach=" + reservecoach +
                ", reservedate=" + reservedate +
                ", reservestates='" + reservestates + '\'' +
                ", member=" + member +
                ", coach=" + coach +
                '}';
    }

    public Date getReservedate() {
        return reservedate;
    }

    public void setReservedate(Date reservedate) {
        this.reservedate = reservedate;
    }

    public TMember getMember() {
        return member;
    }

    public void setMember(TMember member) {
        this.member = member;
    }

    public TCoach getCoach() {
        return coach;
    }

    public void setCoach(TCoach coach) {
        this.coach = coach;
    }

    public Integer getReserveid() {
        return reserveid;
    }

    public void setReserveid(Integer reserveid) {
        this.reserveid = reserveid;
    }

    public Integer getReservemem() {
        return reservemem;
    }

    public void setReservemem(Integer reservemem) {
        this.reservemem = reservemem;
    }

    public Integer getReservecoach() {
        return reservecoach;
    }

    public void setReservecoach(Integer reservecoach) {
        this.reservecoach = reservecoach;
    }

    public String getReservestates() {
        return reservestates;
    }

    public void setReservestates(String reservestates) {
        this.reservestates = reservestates == null ? null : reservestates.trim();
    }
}